package com.ruoyi.equ.service.impl;


import com.ruoyi.equ.domain.EquCombination;
import com.ruoyi.equ.mapper.EquCombinationMapper;
import com.ruoyi.equ.service.IEquCombinationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 设备信息关联Service业务层处理
 * 
 * @author luguanqing
 * @date 2020-10-22
 */
@Service
public class EquCombinationServiceImpl implements IEquCombinationService
{
    @Autowired
    private EquCombinationMapper equCombinationMapper;

    /**
     * 查询设备信息关联
     * 
     * @param id 设备信息关联ID
     * @return 设备信息关联
     */
    @Override
    public EquCombination selectEquCombinationById(String id)
    {
        return equCombinationMapper.selectEquCombinationById(id);
    }

    /**
     * 查询设备信息关联列表
     * 
     * @param equCombination 设备信息关联
     * @return 设备信息关联
     */
    @Override
    public List<EquCombination> selectEquCombinationList(EquCombination equCombination)
    {
        return equCombinationMapper.selectEquCombinationList(equCombination);
    }

    /**
     * 新增设备信息关联
     * 
     * @param equCombination 设备信息关联
     * @return 结果
     */
    @Override
    public int insertEquCombination(EquCombination equCombination)
    {
        return equCombinationMapper.insertEquCombination(equCombination);
    }

    /**
     * 修改设备信息关联
     * 
     * @param equCombination 设备信息关联
     * @return 结果
     */
    @Override
    public int updateEquCombination(EquCombination equCombination)
    {
        return equCombinationMapper.updateEquCombination(equCombination);
    }

    /**
     * 批量删除设备信息关联
     * 
     * @param ids 需要删除的设备信息关联ID
     * @return 结果
     */
    @Override
    public int deleteEquCombinationByIds(String[] ids)
    {
        return equCombinationMapper.deleteEquCombinationByIds(ids);
    }

    /**
     * 删除设备信息关联信息
     * 
     * @param id 设备信息关联ID
     * @return 结果
     */
    @Override
    public int deleteEquCombinationById(String id)
    {
        return equCombinationMapper.deleteEquCombinationById(id);
    }
}
